package com.hitqz.robot.api.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测姿态组
 */
@TableName(value = "patrol_item")
public class PatrolItem {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;
    @NotNull(message = "位置-姿态组id不能为空")
    private Integer patrolPosPoseGroupId;
    @NotNull(message = "巡检对象id不能为空")
    private Integer patrolObjectId;
    @NotBlank(message = "检测项名称不能为空")
    @Schema(description = "检测项名称")
    private String name;
    @NotNull(message = "外设id不能为空")
    private Integer equipmentId;
    @Schema(description = "标准值 上下限用英文逗号隔开")
    private String standardValue;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPatrolPosPoseGroupId() {
        return patrolPosPoseGroupId;
    }

    public void setPatrolPosPoseGroupId(Integer patrolPosPoseGroupId) {
        this.patrolPosPoseGroupId = patrolPosPoseGroupId;
    }

    public Integer getPatrolObjectId() {
        return patrolObjectId;
    }

    public void setPatrolObjectId(Integer patrolObjectId) {
        this.patrolObjectId = patrolObjectId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Integer equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getStandardValue() {
        return standardValue;
    }

    public void setStandardValue(String standardValue) {
        this.standardValue = standardValue;
    }

    @Override
    public String toString() {
        return "PatrolItem{" +
                "id=" + id +
                ", patrolPoseGroupId=" + patrolPosPoseGroupId +
                ", patrolObjectId=" + patrolObjectId +
                ", name='" + name + '\'' +
                ", equipmentId='" + equipmentId + '\'' +
                '}';
    }
}
